"""
系统配置
"""
import os

from dotenv import load_dotenv, find_dotenv

from workon.language import CN

# 加载环境变量
load_dotenv(find_dotenv(), override=True)

"""
系统调试
"""
DEBUG = False
INTERCEPT = True

"""
项目信息
"""
API_PREFIX = "/api"
VERSION = "0.0.1"
PROJECT_NAME = "Apiless"
DESCRIPTION = '基于fastapi开发的简易Severless调试框架'

"""
跨域支持
"""
MWA_ORIGINS = [
    'http://api.cvdnn.com',
    'https://api.cvdnn.com',
    "http://localhost",
    "http://localhost:8080"]
MWA_ALLOW_CREDENTIALS = True
MWA_ALLOW_METHODS = ['*']
MWA_ALLOW_HEADERS = ['*']

"""
日志
"""
LOG_DIR = os.path.join(os.getcwd(), 'logs')

"""
语言
"""
LANG = CN
